import request from '@/utils/request'

// 查询通知公告列表
export function listNotice(query) {
  return request({
    url: '/notice/notice/list',
    method: 'get',
    params: query
  })
}

// 查询通知公告详细
export function getNotice(id) {
  return request({
    url: '/notice/notice/' + id,
    method: 'get'
  })
}

// 新增通知公告
export function addNotice(data) {
  return request({
    url: '/notice/notice',
    method: 'post',
    data: data
  })
}

// 修改通知公告
export function updateNotice(data) {
  return request({
    url: '/notice/notice',
    method: 'put',
    data: data
  })
}

// 删除通知公告
export function delNotice(id) {
  return request({
    url: '/notice/notice/' + id,
    method: 'delete'
  })
}

// 公告反馈
export function noticeFeedback(data) {
  return request({
    url: '/notice/notice/dispose',
    method: 'post',
    data: data
  })
}

//公告处置记录
export function noticeFeedbackList(data) {
  return request({
    url: '/notice/notice/dispositionList',
    method: 'post',
    data: data
  })
}

//公告处置已读
export function noticeRead(data) {
  return request({
    url: '/notice/notice/yesRead',
    method: 'post',
    data: data
  })
}

//公告签收单位数据
export function acceptanceList(data) {
  return request({
    url: '/notice/notice/acceptance',
    method: 'post',
    data: data
  })
}
